<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>用户注册</title>
	<link rel="stylesheet" href="../frontDesk/css/base.css" />
	<link rel="stylesheet" href="../frontDesk/css/global.css" />
	<link rel="stylesheet" href="../frontDesk/css/login-register.css" />
	<script type="text/javascript" src="../frontDesk/js/jquery.js" ></script>
	<script type="text/javascript" src="../frontDesk/js/topNav.js" ></script>
	<script type="text/javascript" src="../frontDesk/js/focus.js" ></script>
	<script type="text/javascript" src="../frontDesk/js/shop_home_tab.js" ></script>

</head>
<body>
<div class="header wrap1000">
	<a href=""><img src="../frontDesk/images/logo.png" alt="" /></a>
</div>

<div class="main">
	<div class="login-form fr">
		<div class="form-hd">
			<h3>用户注册</h3>
			<b>
				<span style="color: red" th:text="${msg}"></span>
			</b>
		</div>
		<div class="form-bd">
			<form id="form-reg" action="/user/reg" method="POST">
				<dl>
					<dt>用户名</dt>
					<dd><input type="text" name="username" id="username" class="text" /></dd>
				</dl>
				<dl>
					<dt>密码</dt>
					<dd><input type="password" name="password" id="password" class="text"/></dd>
				</dl>
				<dl>
					<dt>手机号</dt>
					<dd><input type="text" name="phone" id="phone" class="text"/></dd>
				</dl>
				<dl>
					<dt>邮箱</dt>
					<dd><input type="text" name="email" id="email" class="text"/></dd>
				</dl>
				<dl>
					<dt>性别</dt>
					<dd>
						<input type="radio" name="gender" value="1" >男&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="gender" value="0" >女
					</dd>
				</dl>
				<dl>
					<dt>&nbsp;</dt>
					<dd><input type="submit" id="btn-reg" value="立即注册" class="submit"/> <input type= "checkbox" checked="checked"/>阅读并同意<a href="" class="forget">服务协议</a></dd>
				</dl>
			</form>

		</div>
		<div class="form-ft">

		</div>
	</div>

	<div class="login-form-left fl">
		<dl class="func clearfix">
			<dt>注册之后您可以</dt>
			<dd class="ico05"><i></i>购买商品支付订单</dd>
			<dd class="ico01"><i></i>申请开店销售商品</dd>
			<dd class="ico03"><i></i>空间好友推送分享</dd>
			<dd class="ico02"><i></i>收藏商品关注店铺</dd>
			<dd class="ico06"><i></i>商品资讯服务评价</dd>
			<dd class="ico04"><i></i>安全交易诚信无忧</dd>
		</dl>

		<div class="if">
			<h2>如果您是本站用户</h2>
			<p>我已经注册过账号，立即
				<a href="/frontDesk/login.html" class="register">登录</a> 或是
				<a href="" class="findpwd">找回密码？</a>
			</p>
		</div>
	</div>
</div>

<div class="footer clear wrap1000">
	<p> <a href="">首页</a> | <a href="">招聘英才</a> | <a href="">广告合作</a> | <a href="">关于ShopCZ</a> | <a href="">联系我们</a></p>
	<p>Copyright 2004-2013 itcast Inc.,All rights reserved.</p>
</div>
</body>
<!--	<script type="text/javascript">-->
<!--		// 用户注册-->
<!--		$("#btn-reg").click(function(){-->
<!--			console.log($("#form-reg").serialize());-->
<!--			$.ajax({-->
<!--				"url":"/user/user_reg.shtml",-->
<!--				"data":$("#form-reg").serialize(),-->
<!--				"type":"post",-->
<!--				"dataType":"json",-->
<!--				"success":function(json){-->
<!--					if (json.code == 200) {-->
<!--						location.href = "/";-->
<!--					}else{-->
<!--						alert(json.message);-->
<!--					}-->
<!--				}-->
<!--			});-->
<!--		});-->
<!--	</script>-->
</html>
